package com.xc.service;

import com.github.pagehelper.PageInfo;
import com.xc.common.ServerResponse;
import com.xc.pojo.SiteAdmin;

import javax.servlet.http.HttpServletRequest;

/**
 * @author mipha
 * @version 1.0
 * @date 2019/2/16 2:53 PM
 */
public interface ISiteAdminService {


    ServerResponse login(String adminPhone,String adminPwd,String verifyCode
            , HttpServletRequest request);


    ServerResponse<PageInfo> listByAdmin(String adminName,String adminPhone
            ,HttpServletRequest request,int pageNum,int pageSize);


    //  审核充值订单的状态
    ServerResponse authCharge(String token,Integer state,String orderSn);


    //  修改管理员锁定状态
    ServerResponse updateLock(Integer adminId);


    //  添加管理员
    ServerResponse add(SiteAdmin siteAdmin);
    ServerResponse update(SiteAdmin siteAdmin);


    SiteAdmin findAdminByName(String name);
    SiteAdmin findAdminByPhone(String phone);


    //  统计信息
    ServerResponse count();


}
